package com.fenyin.samples.study.parttern.struct.bridge.example1.oracle;  

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.fenyin.samples.study.parttern.struct.bridge.example1.Connection;
import com.fenyin.samples.study.parttern.struct.bridge.example1.Driver;
import com.fenyin.samples.study.parttern.struct.bridge.example1.DriverManager;
  
public class OracleDriver implements Driver{
	
	private static final Log log  = LogFactory.getLog(OracleDriver.class);
	
	static{
		DriverManager.registerDirver(new OracleDriver());
	}

	public Connection getConnection(String url, String userName, String password) {
		log.info("mysql connection:url:"+url+"username:"+userName+"password:"+password);
		return new OracleConnection();
	}
}
